import React, { Component } from 'react';
import { View } from 'react-native';
import Basic from './demo/Basic'
import {Toast,Label,ThemeProvider,Button} from 'iftide'
export default class MessageBox_Demo extends Component {
    constructor(props) {
        super(props);
        this.state = {
            theme:"themeB",
        }
    }


    onPress1=()=>{
        this.setState({
            theme:"themeA",
        })
    }

    render(){
        return(
            <View>
                <Button title={"切换"} size={"normal"} onPress={this.onPress1}  buttonHeight={30}/>
                <ThemeProvider  theme={this.state.theme}/>
                <Basic/>
            </View>
            
        )
    }
}